﻿@using SketchTour.Models
@using Resources
@model MSUR00Models
@{
    ViewBag.Title = "Register";
}

<!-- main start-->
<div id="main">
    <!-- InstanceBeginEditable name="EditRegion1" -->
    <h2>
        @Resource.MSUR00_SCR_lblTitle
    </h2>
    <!-- InstanceEndEditable -->
    <div id="error" class="error">
    </div>
    <div id="Div1" class="success">
    </div>
    <!-- InstanceBeginEditable name="EditRegion2" -->
    <p>
    </p>
    <p>
    </p>
    @using (Html.BeginForm(Html.BeginForm("Add", "MSUS00")))
    {
        @Html.ValidationSummary()
        <table class="inputForm">
            <tbody>
                <tr>
                    <th scope="row" class="txt150">
                        <span class="requirement"></span>User Name
                        <label class="requirement">
                            *</label>
                    </th>
                    <td>
                        @*<input class="txt200" id="STAFF_CONTACT_COMPANY_PHONE" maxlength="50" name="STAFF_CONTACT.COMPANY_PHONE"
                            type="text" value="" />*@
                        @Html.TextBoxFor(m => m.UserName)
                    </td>
                </tr>
                <tr>
                    <th scope="row">
                        <span class="requirement"></span>Full Name
                        <label class="requirement">
                            *</label>
                    </th>
                    <td>
                        @*<input class="txt200" id="Text1" maxlength="50" name="STAFF_CONTACT.COMPANY_PHONE"
                            type="text" value="" />*@
                        @Html.TextBoxFor(m => m.FullName)
                    </td>
                </tr>
                <tr>
                    <th scope="row">
                        <span class="requirement"></span>Password<label class="requirement">*</label>
                    </th>
                    <td>
                        @*<input class="txt200" id="STAFF_CONTACT_COMPANY_FAX" maxlength="50" name="STAFF_CONTACT.COMPANY_FAX"
                            type="password" value="" />*@
                        @Html.PasswordFor(m => m.Password)
                    </td>
                </tr>
                <tr>
                    <th scope="row">
                        <span class="requirement"></span>Password Confirm
                        <label class="requirement">
                            *</label>
                    </th>
                    <td>
                        @*<input class="txt200" id="" maxlength="100" name="STAFF_CONTACT.COMPANY_EMAIL" type="password"
                            value="" />*@
                        @Html.PasswordFor(m => m.ConfirmPassword)
                    </td>
                </tr>
                <tr>
                    <th scope="row">
                        <span class="requirement"></span>Status<label class="requirement">*</label>
                    </th>
                    <td>
                        @{List<MSUR00Models.SimpleObject> StatusTypes = new List<MSUR00Models.SimpleObject>();
                          StatusTypes.Add(new MSUR00Models.SimpleObject(0, "", null));
                          StatusTypes.Add(new MSUR00Models.SimpleObject(0, "InActive", null));                          
                          StatusTypes.Add(new MSUR00Models.SimpleObject(1, "Active", null));
                        }
                        @Html.DropDownListFor(m => m.IsActive, new SelectList(StatusTypes, "Id", "StringValue"), "")
                        <br />@Html.ValidationMessageFor(m => m.IsActive)

                        @*@Html.DropDownList("IsActive", ViewData["trangThais"] as SelectList, new { style = "width:133px;" })
                        @Html.ValidationMessageFor(model => model.IsActive, " ")*@
                    </td>
                </tr>
                <tr>
                    <th width="100px">
                        <label class="requirement">
                        </label>
                        Note
                    </th>
                    <td>
                        <textarea style="width: 200px"></textarea>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table class="data-table" id="tbl1">
            <tbody>
                <tr bgcolor="D8E6FC">
                    <th style="text-align: center;">
                        <input type="checkbox" />
                    </th>
                    <th style="text-align: center;" scope="col" width="233px">
                        <span class="requirement"></span>Role Name
                        <label class="requirement">
                            *</label>
                    </th>
                </tr>
                <tr>
                    <td style="text-align: center;">
                        <input type="checkbox" />
                    </td>
                    <td style="text-align: left;">
                        Administrator
                    </td>
                </tr>
                <tr class="row-alternating">
                    <td style="text-align: center;">
                        <input type="checkbox" />
                    </td>
                    <td style="text-align: left;">
                        User
                    </td>
                </tr>
                <tr>
                    <td style="text-align: center;">
                        <input type="checkbox" />
                    </td>
                    <td style="text-align: left;">
                        Guest
                    </td>
                </tr>
                @* @Html.CheckBoxFor(m => m.RoleID)*@
            </tbody>
        </table>
        <input name="BtSave" type="submit" value="Save" />
@*<input name="BtSave" value="Save" class="btn60" type="submit" onclick="history.go(-1);return true;" />*@
        <!-- InstanceEndEditable -->
    }
</div>
<!-- main end-->
